package com.sy.simpleegg.mvp.contract

import com.sy.simpleegg.base.IModel
import com.sy.simpleegg.base.IPresenter
import com.sy.simpleegg.base.IView
import com.sy.simpleegg.bean.SupplementOrderBean

interface SupplementContract {
    interface View: IView{
        fun loadData(datas: MutableList<SupplementOrderBean>)
    }

    interface Presenter: IPresenter<View>{
        fun getOrder(startDate: String, endDate: String)

        fun setRealAmount(id: Long, realAmount: String)
    }

    interface Model: IModel{
        suspend fun getOrder(startDate: String, endDate: String): MutableList<SupplementOrderBean>

        suspend fun setRealAmount(id: Long, realAmount: String)
    }
}